const { DataTypes } = require('sequelize')
const moment = require('moment')
const seq = require('../db/seq')

const Duty = seq.define('duty', {
    id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
    empId: DataTypes.INTEGER,
    empName: DataTypes.STRING,
    signInTime: {
        type: DataTypes.DATE
    },
    signOutTime: {
        type: DataTypes.DATE
    }
}, {
    tableName: 'duty'
})
module.exports = Duty